package com.dianhun.cn.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cyt
 * @create 2020-08-24 13:50
 */
@Configuration
public class Mq {
    private final String QUEUE_NAME = "hello";

    @Bean
    public Queue helloQueue(){
        return new Queue(QUEUE_NAME);
    }

}
